package org.example.session;

import org.example.config.Configuration;

import java.io.Closeable;
import java.util.List;

public interface SqlSession extends Closeable {

    <T> T selectOne(String statement);
    <T> T selectOne(String statement, Object parameter);
    <E> List<E> selectList(String statement);
    <E> List<E> selectList(String statement, Object parameter,RowBounds rowBounds);

    <T> T getMapper(Class<T> type);

    Configuration getConfiguration();

}

